//
//  MainView.swift
//  ShiZhe
//
//  Created by 陈卿伟 on 16/9/12.
//  Copyright © 2016年 陈卿伟. All rights reserved.
//

import UIKit

class MainView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = Theme.BGColor
        self.addLogo()
        self.addWaitLabel()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //添加logo
    func addLogo(){
        let logoImage = UIImageView(frame: CGRectMake(138*SCALEW, 177*SCALEH, 100*SCALEW, 71.43*SCALEH))
        logoImage.image = UIImage(named: "placehoderImage")
        self.addSubview(logoImage)
    }
    
    //添加等待标语
    func addWaitLabel(){
        let waitLabel = UILabel(frame: CGRectMake(140*SCALEW,259*SCALEH,105*SCALEW,25*SCALEW))
        waitLabel.textAlignment = .Center
        waitLabel.textColor = Theme.GrayColor
        waitLabel.font = BaseFunc.getLightFont(16)
        waitLabel.text = "玩命加载中..."
        self.addSubview(waitLabel)
    }
}
